package cn.jly.spring.annotation.ioc.config;

import cn.jly.spring.annotation.ioc.bean.SpringComponent;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lanyangji
 * @description 测试获取spring组件
 * @date 2020/11/13 下午 5:14
 */
@Configuration
public class MainConfigAware {

    @Bean
    public SpringComponent springComponent() {
      return new SpringComponent();
    }
}
